package com.boarsoft.message.test.other;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import com.boarsoft.common.util.BetwixtUtil;
import com.boarsoft.message.bean.Message;
import com.boarsoft.message.core.MessageService;

@Component("queue1Consumer2")
public class Queue1Consumer2 implements MessageService {

	private Logger log = LoggerFactory.getLogger(this.getClass());

	@Override
	public void put(Message msg) throws Exception {
		log.info(BetwixtUtil.object2xml(msg));
	}
}
